package com.jindy.module.approvalRecord.mapper;

import com.jindy.module.approvalRecord.domain.ApprovalRecord;

import java.util.List;

/**
 * 审批记录Mapper接口
 * 
 * @author jindy
 * @date 2023-03-28
 */
public interface ApprovalRecordMapper 
{
    /**
     * 查询审批记录
     * 
     * @param id 审批记录主键
     * @return 审批记录
     */
    public ApprovalRecord selectApprovalRecordById(Long id);

    /**
     * 查询审批记录列表
     * 
     * @param approvalRecord 审批记录
     * @return 审批记录集合
     */
    public List<ApprovalRecord> selectApprovalRecordList(ApprovalRecord approvalRecord);

    /**
     * 新增审批记录
     * 
     * @param approvalRecord 审批记录
     * @return 结果
     */
    public int insertApprovalRecord(ApprovalRecord approvalRecord);

    /**
     * 修改审批记录
     * 
     * @param approvalRecord 审批记录
     * @return 结果
     */
    public int updateApprovalRecord(ApprovalRecord approvalRecord);

    /**
     * 删除审批记录
     * 
     * @param id 审批记录主键
     * @return 结果
     */
    public int deleteApprovalRecordById(Long id);

    /**
     * 批量删除审批记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteApprovalRecordByIds(Long[] ids);

    /**
     *根据流水单号和审批记录序号修改审批信息
     * @param approvalRecordParam
     */
    void updateApprovalRecordBySerialNum(ApprovalRecord approvalRecordParam);


    /**
     * 根据流水单号删除审批记录
     * @param orderNo 流水单号
     */
    void deleteApprovalRecordBySerialNum(String orderNo);
}
